import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store/index";
// import './registerServiceWorker'
import "./assets/style/base.scss";
// import Components from './plugins/components.js'
import "@/plugins/vant";
// import '@/plugins/muse'
import "lib-flexible/flexible";
import { setWebViewTitle, MXCommon, getCurrentUser } from "@/core/mxApi/index";

import iphoneXBottom from "@/mixins/iphoneXBottomAside";
// import { threeSplit } from '@/utils/index.js'
// museUI插件
// import Vue from 'vue';
import MuseUI from "muse-ui";
import "muse-ui/dist/muse-ui.css";
import "muse-ui/lib/styles/theme.less";
import "muse-ui/lib/styles/base.less";
import "./assets/font/iconfont.css";

// 图表
import echarts from "echarts";

// 全局变量
import global_variable from "./components/global_variable";

// 接口全局变量
import global_jk from "./components/global_jk";

import Vconsole from "vconsole";
const vConsole = new Vconsole();
Vue.use(vConsole);
Vue.prototype.$echarts = echarts;
Vue.prototype.GLOBAL = global_variable;
Vue.prototype.MXCommon = MXCommon;
Vue.prototype.GLOBALS = global_jk;

Vue.config.productionTip = false;
Vue.prototype.setWebViewTitle = setWebViewTitle;
Vue.prototype.MXCommon = MXCommon;
// Vue.filter('threeSplit', threeSplit)
// Vue.use(Components)
Vue.mixin(iphoneXBottom);
Vue.use(MuseUI);

export default new Vue({
  router,
  store,
  render: h => h(App)
}).$mount("#app");
